package com.yh.dao;

import java.util.List;



import com.yh.bean.BuyGoods;
import com.yh.bean.User;

//订单dao 

public interface BuyGoodsDao {
	
	public void deleteBuyGoods(BuyGoods buyGoods);//删除订单
	
	public int addBuyGoods(BuyGoods buyGoods);//添加订单
	
	public List<BuyGoods> listBuyGoods(BuyGoods buyGoods);//查询显示订单列表
	
	public int addBuyGoodsByGoods(BuyGoods buyGoods);//添加指定商品到订单
	
	public User queryUser(User user);//根据用户ID查询用户信息
	
	public void updateUserMoney(User user);//用户购买商品成功后修改用户余额
	
	public void increaseUserIntegral(User user);//用户购买成功后按照百分比增加用户积分
}
